package com.zzt.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

@ToString
@Data
@NoArgsConstructor
public class Goodsinfo implements Serializable {
    private Integer gno;

    private String gname;

    private Integer tno;

    private Float price;

    private String intro;

    private String descr;

    private String unit;

    private String pic;

    private Integer status;

    private Goodstype goodstype;

    public Goodstype getGoodstype() {
        return goodstype;
    }

    public void setGoodstype(Goodstype goodstype) {
        this.goodstype = goodstype;
    }

    public Goodsinfo(Integer gno, String gname, Integer tno, Float price, String intro, String descr, String unit, String pic, Integer status, Goodstype goodstype) {
        this.gno = gno;
        this.gname = gname;
        this.tno = tno;
        this.price = price;
        this.intro = intro;
        this.descr = descr;
        this.unit = unit;
        this.pic = pic;
        this.status = status;
        this.goodstype = goodstype;
    }

    public Goodsinfo(Integer gno, String gname, Integer tno, Float price, String intro, String descr, String unit, String pic, Integer status) {
        this.gno = gno;
        this.gname = gname;
        this.tno = tno;
        this.price = price;
        this.intro = intro;
        this.descr = descr;
        this.unit = unit;
        this.pic = pic;
        this.status = status;
    }

    public Integer getGno() {
        return gno;
    }

    public void setGno(Integer gno) {
        this.gno = gno;
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname == null ? null : gname.trim();
    }

    public Integer getTno() {
        return tno;
    }

    public void setTno(Integer tno) {
        this.tno = tno;
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro == null ? null : intro.trim();
    }

    public String getDescr() {
        return descr;
    }

    public void setDescr(String descr) {
        this.descr = descr == null ? null : descr.trim();
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit == null ? null : unit.trim();
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic == null ? null : pic.trim();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}